<template>
  <span > {{pome}} </span>
  <div class="ces">
   <div class="sass">
     我是sass样式设置
   </div>
  </div>
</template>

<script setup>
  import request from "@/api/request";
  import {ref,onMounted} from 'vue'

  let pome = ref('人面不知何处去,桃花依旧笑春风')

  let sendReq = request()

  const getPome = () => {
    let params = {
      url:'sentence',
      method:'GET'
    }
    //请求今日诗词 api 接口
    sendReq(params,(res) => {
      pome.value = res.content
      console.log(pome.value);
      console.log(res);
    })
  }

  onMounted(() => {
    getPome()
  })

</script>

<style scoped lang="scss">
  .ces {
    .sass {
      color: red;
    }
  }
</style>
